﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.IO;

namespace DDNY.WebPortals.Common
{
   public class HtmlUtil
    {

       public static string RenderControl(Control ctrl)
       {
           StringBuilder sb = new StringBuilder();
           StringWriter tw = new StringWriter(sb);
           HtmlTextWriter hw = new HtmlTextWriter(tw);

           ctrl.RenderControl(hw);
           return sb.ToString();
       }

    }
}
